package com.ruoyi.system.domain.zhuangxiumain.orderformMain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderComment extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 评论表的id
	 */
	@TableId(type = IdType.AUTO)
	private Integer orderCommentId;

	/**
	 * 评论人的id
	 */
	private Integer customerId;

	/**
	 * 订单的id
	 */
	private Integer orderId;

	/**
	 * 商品的id
	 */
	private Integer productId;

	/**
	 * 商品评价的级别
	 */
	private Integer orderCommentLevel;

	/**
	 * 商品的评价
	 */
	private String orderCommentContent;

	/**
	 * 商品评价的图片
	 */
	private Integer orderCommentPicture;

	/**
	 * 0默认状态
	 */
	private Integer orderCommentStatus;

	/**
	 * 评论的时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderCommentApplicationTime;

	/**
	 * 被选人的id
	 */
	private Integer byCustomerId;

	@TableField(exist = false)
	private List fileList;
	@TableField(exist = false)
	private List<Map<String,Object>> urlList;
	@TableField(exist = false)
	private String img0;
	@TableField(exist = false)
	private String img1;
	@TableField(exist = false)
	private String img2;
	@TableField(exist = false)
	private String img3;


}
